/**
 * The component that shows the application logo and the title of the current
 * page.
 *
 * (c) Copyright 2011 Nokia Corporation. All rights reserved.
 */

import QtQuick 1.1

Item {
    id: topBar;
    property alias titleImage: pageTitle.source;

    // Logo
    Image {
        id: logo;
        x: 10;
        source: "qrc:/gfx/logo_112x60.png";
    }

    // Page title
    Image {
        id: pageTitle;
        x: (logo.x + logo.width) +
           (parent.width - (logo.x + logo.width)) / 2 -
           pageTitle.width / 2;
        y: parent.height / 2 - pageTitle.height / 2;
    }

    // Separator line
    Rectangle {
        anchors.bottom: parent.bottom;
        width: parent.width;
        height: 2;
        color: "#60bcec";
    }
}
